import request from "@/utils/request";
import {AxiosPromise} from 'axios';
import {LoginData,LoginResult} from "./types";

/* 登录api
*
* @param data {LoginData}
* @returns
*/
export function loginApi(data:LoginData):AxiosPromise<LoginResult>{
  return request({
    url:'/api/v1/auth/login',
    method:'post',
    params:data
  })
}